<template>
	<div>
		<h1>内置事件绑定、自定义事件绑定</h1>
		<button v-on:click="onclick">click me</button>
		<input type="text" @keydown.13="onkeyenter">
		<v005c @on-eat="oneat"></v005c>
	</div>
</template>

<script>
	import v005c from '@/components/base/005c'
	export default {
		components: {
			v005c
		},
		methods: {
			onclick () {
				console.log('you click me!')
			},
			onkeyenter () {
				console.log('on key enter!')
			},
			oneat (msg) {
				console.log('you eat 005c, he said:' + msg)
			}
		}
	}
</script>

<style>
	
</style>